﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:ubcr="clr-namespace:UBCon.Ribbon"
                    xmlns:skin="clr-namespace:UBCon.Ribbon.SkinManagers">
    
    <Style TargetType="{x:Type ubcr:RibbonChrome}">
        <Setter Property="Background" Value="{DynamicResource {ComponentResourceKey TypeInTargetAssembly={x:Type skin:SkinManager}, ResourceId=SelectedTabItemBrush}}"/>
        <Setter Property="BorderBrush" Value="{DynamicResource ResourceKey={ComponentResourceKey TypeInTargetAssembly={x:Type skin:SkinManager}, ResourceId=SelectedBorderBrush}}" />
        <Setter Property="InnerBorderBrush" Value="{DynamicResource ResourceKey={ComponentResourceKey TypeInTargetAssembly={x:Type skin:SkinManager}, ResourceId=TransparentBrush}}" />
        <Setter Property="MouseOverBorderBrush" Value="{DynamicResource {ComponentResourceKey TypeInTargetAssembly={x:Type skin:SkinManager}, ResourceId=MouseOverBorderBrush}}" />
        <Setter Property="MouseOverBackgroundBrush" Value="{DynamicResource {ComponentResourceKey TypeInTargetAssembly={x:Type skin:SkinManager}, ResourceId=MouseOverBackgroundBrush}}"/>
        <Setter Property="PressedBorderBrush" Value="{DynamicResource {ComponentResourceKey TypeInTargetAssembly={x:Type skin:SkinManager}, ResourceId=PressedBorderBrush}}" />
        <Setter Property="PressedBackgroundBrush" Value="{DynamicResource {ComponentResourceKey TypeInTargetAssembly={x:Type skin:SkinManager}, ResourceId=PressedBackgroundBrush}}"/>
        <Setter Property="VerticalContentAlignment" Value="Stretch"/>
        <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
        <Setter Property="BorderThickness" Value="1"/>
        <Setter Property="InnerBorderThickness" Value="1"/>
        <Setter Property="CornerRadius" Value="3"/>
        <Setter Property="InnerBorderCornerRadius" Value="3"/>
    </Style> 
</ResourceDictionary>